﻿using System;
using System.Runtime.Serialization;

namespace Cubicle.Core.DataContracts
{
    [DataContract]
    [Serializable]
    public class GenericEventArgs<T> : EventArgs
    {
        [DataMember]
        public readonly T Payload;

        public GenericEventArgs(T payload)
        {
            Payload = payload;
        }
    }
}